package fr.umlv.m2.jee.pmlv.persistence.ldapLink;

import java.io.Serializable;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import fr.umlv.m2.jee.pmlv.persistence.cursus.Cursus;

@SuppressWarnings("serial")
@Entity
@Table(name="User__Cursus")
public class UserCursus implements Serializable {

	@EmbeddedId
	private UserCursusPK primaryKey;

	public void setPrimaryKey(UserCursusPK primaryKey) {
		this.primaryKey = primaryKey;
	}

	public UserCursusPK getPrimaryKey() {
		return primaryKey;
	}
	
	public void setUid(String uid) {
		primaryKey.setUid(uid);
	}

	public String getUid() {
		return primaryKey.getUid();
	}

	public void setCursus(Cursus cursus) {
		primaryKey.setCursus(cursus);
	}

	public Cursus getCursus() {
		return primaryKey.getCursus();
	}

	public void setYear(long year) {
		primaryKey.setYear(year);
	}

	public long getYear() {
		return primaryKey.getYear();
	}
	
	
}